@Component("UnicoreBeyondUi.Dispatch.LoadInputTypesActionHandler")
public class LoadInputTypesActionHandler
    implements ActionHandler<LoadInputTypesAction,
        LoadInputTypesResult> {

  @Autowired
  private TaskService taskService;
	
  @Override
  public LoadInputTypesResult execute(LoadInputTypesAction action)
      throws ActionException {
    return new LoadInputTypesResult(taskService.listInputTypes());
  }

  @Override
  public Class<LoadInputTypesAction> getActionType() {
    return LoadInputTypesAction.class;
  }

  @Override
  public void rollback(LoadInputTypesAction action,
      LoadInputTypesResult result)
      throws ActionException {}
}
